<?php
	session_start();
	$title=$_POST["title"];
	$joke=$_POST["joke"];
	$id_user=$_SESSION["id_user"];
	include("database.php");
	$requete="
		INSERT into jokes
		VALUES ('','$title','$joke',$id_user,UNIX_TIMESTAMP(),'')
	";
	mysql_query($requete);
	header('Location: index.php');

?>
